/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Monitores;

/**
 *
 * @author 21322325
 */
public class Cerrojos {
    
    public static void main (String [] args){
        System.out.println("Cerrojossssssss!!");
        
        Monitor monitor = new Monitor ();
        
        Hilo h1 = new Hilo (monitor,"Proceso1");
        Hilo h2 = new Hilo (monitor,"Proceso2");
        
        h1.start();
        h2.start();
    }
}
